package com.graduationproject.examonline.utils;

public class FirstRun {
    private boolean first = true;
    private  static FirstRun instance = new FirstRun();

    private FirstRun() {
    }

    public boolean isFirst() {
        boolean preFirst = this.first;
        this.first = false;
        return preFirst;
    }

    public static FirstRun getFirstRun() {
        return instance;
    }
}
